package aplicacion.frames;

import gui.GLJPanels.GLJPanelReceptaculo;
import gui.GLListeners.GLReceptaculos.GLListenerReceptaculoCircules;
import gui.JPanels.JPanelGaleriaFotosReceptaculo;

import java.awt.BorderLayout;

import javax.swing.JFrame;

import textures.viewer.JPanelViewImage;
import aplicacion.Vista;
import constantes.Consts;

public class GaleriaReceptaculos extends JFrame{
	private static final long serialVersionUID = 1L;
//	private GLListener GLL;
//	private GLJPanelCurvas canvas;
	
	public GaleriaReceptaculos(Vista v, int cir, int elem,
			GLListenerReceptaculoCircules mainGLL,GLJPanelReceptaculo mainCanvas) {
		
		super("Galeria receptaculos");
		this.getContentPane().setLayout(new BorderLayout());
		setSize(Consts.DEFAULT_FRAME_HEIGHT, Consts.DEFAULT_FRAME_WIDTH);
		setLocationRelativeTo(null);
		this.setDefaultCloseOperation(DISPOSE_ON_CLOSE);
//        this.addWindowListener(new WindowAdapter() { 
//            public void windowClosing(WindowEvent we) {
//            	System.exit(0);
//            }
//          });
        this.setResizable(false);

        JPanelViewImage panel = new JPanelViewImage();

      this.getContentPane().add(panel,BorderLayout.CENTER);

      JPanelGaleriaFotosReceptaculo btPane= new JPanelGaleriaFotosReceptaculo(Vista.getInstance(),cir, elem,
    		  Consts.RECEPTACULOS_GALERIA_FOLDER,panel,mainGLL,mainCanvas,this);
      this.getContentPane().add(btPane,BorderLayout.SOUTH);

        
	}

	
	public static void main(String[] args)
    {
		GaleriaReceptaculos app = new GaleriaReceptaculos(null,0,0,null,null);
        app.setVisible(true);
    }
}
